//
//  BBArticleModel.h
//  BlockBrowser
//
//  Created by Mac on 2018/4/2.
//  Copyright © 2018年 stoneobs@icloud.com. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface BBArticleModel : NSObject
@property(nonatomic, strong) NSNumber                     *totalRow;
@property(nonatomic, strong) NSNumber                     *coin_num;/**< 剩余 */
@property(nonatomic, strong) NSNumber                     *pageNumber;
@property(nonatomic, strong) NSNumber                     *totalPage;
@property(nonatomic, strong) NSNumber                     *firstPage;
@property(nonatomic, strong) NSNumber                     *lastPage;
@property(nonatomic, strong) NSNumber                     *pageSize;
@property(nonatomic, strong) NSNumber                     *hours;
@property(nonatomic, strong) NSString                     *dateline;
@property(nonatomic, strong) NSString                     *content;
@property(nonatomic, strong) NSString                     *newsID;/**< 快讯ID */
#pragma mark --处理好的数据
@property(nonatomic, assign) CGFloat                     allHeight;/**< 计算高度 */
@property(nonatomic, assign) BOOL                        isSelcted;/**< 是否选择 */
@property(nonatomic, strong) NSString                    *time;/**< 处理好的sectionHeader时间 */
@property(nonatomic, strong) NSString                    *countTime;/**< 处理好的countTime时间 */
@property(nonatomic, assign) CGFloat                     originLableHeight;/**< 初始高度 */
@property(nonatomic, assign) CGFloat                     currentLableHeight;/**< 当前高度 */
@property(nonatomic, copy) void(^countDown)(NSString * dateString);/**< 倒计时回调 */
- (NSString*)countDownWithSecend:(NSInteger)secend;
- (BOOL)canCountDown;
- (void)timerBegain;
- (void)timerEnd;
- (NSString*)currentDetailTime;
//totalRow：总条数
//pageNumber: 当前页数
//totalPage:总页数
//firstPage:是否为第一页
//lastPage:是否为最后一页
//pageSize:一页的条数
//hours:计时/小时
//dateline：创建时间
//content:内容
@end
